import React from 'react';
import { Input, Select, Form, Button } from 'antd';
import { useDispatch } from 'react-redux';
const ProjectSearch = () => {
  const dispatch = useDispatch();

  const [form] = Form.useForm();

  const reset = () => {
    form.resetFields();
  };
  const search_click = async () => {
    const form_data = await form.validateFields();
    if (form_data) {
      console.log('调接口,取数据');
    }
  };
  return (
    <>
      <Form layout='inline' form={form}>
        <Form.Item name='name' style={{ width: 180 }}>
          <Input placeholder={'任务名'} />
        </Form.Item>
        <Form.Item label='部门' name='organization' style={{ width: 180 }}>
          <Select options={''}></Select>
        </Form.Item>
        <Form.Item label='负责人' name='owner' style={{ width: 180 }}>
          <Select options={''}></Select>
        </Form.Item>
        <Button onClick={reset} type=''>
          重置
        </Button>
        <Button onClick={search_click} type='primary'>
          查询
        </Button>
      </Form>
    </>
  );
};

export default ProjectSearch;
